﻿@model UdostepniaczPlikow.ViewModels.FileViewModel

@{
    ViewBag.Title = "Dodaj plik";
}

<h2>Dodaj plik</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("Create", "File", FormMethod.Post, new { enctype = "multipart/form-data"})) 
{
    @Html.ValidationSummary(true)
    <input name="uploadFile" type="file" />
    <input type="submit" value="Upload File" />

}

<div>
    @Html.ActionLink("Wróć do listy plików", "Index")
</div>
